package com.charles.springcloud.service;

import com.charles.common.CommonResult;
import com.charles.springcloud.entity.Payment;
import feign.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: 风中灵劲草
 * @Date: 2021/08/05/15:55
 * @Description:
 */
@FeignClient("cloud-payment-service")
public interface PaymentFeignService {

    @GetMapping(value = "/payment/getPayment/{id}")
    CommonResult<Payment> getPaymentById(@PathVariable("id") Long id);

    @GetMapping(value = "/payment/feign/timeout")
    String feignTimeout();
}
